package com.haiya.factory.absfactory.pizza.product;

/**
 * @author qiaoguoqiang
 */
public abstract class Pizza {
    protected String name;

    /**
     * 准备过程
     * 具体的Pizza准备过程多有不同，比如原材料准备不太一样
     * 因此我们做成抽象方法
     */
    public abstract void prepare();

    public void bake() {
        System.out.println(name + " baking...");
    }

    public void cut() {
        System.out.println(name + " cut...");
    }

    public void box() {
        System.out.println(name + " box...");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
